import request from '@/utils/request'

// 查询场馆使用排班列表
export function listSchedules(query) {
  return request({
    url: '/hj/schedules/list',
    method: 'get',
    params: query
  })
}

// 查询场馆使用排班详细
export function getSchedules(scheduleId) {
  return request({
    url: '/hj/schedules/' + scheduleId,
    method: 'get'
  })
}

// 新增场馆使用排班
export function addSchedules(data) {
  return request({
    url: '/hj/schedules',
    method: 'post',
    data: data
  })
}

// 修改场馆使用排班
export function updateSchedules(data) {
  return request({
    url: '/hj/schedules',
    method: 'put',
    data: data
  })
}

// 删除场馆使用排班
export function delSchedules(scheduleId) {
  return request({
    url: '/hj/schedules/' + scheduleId,
    method: 'delete'
  })
}
